package com.dynamic.data.permission.annotation;

import com.baomidou.mybatisplus.core.enums.SqlKeyword;
import com.dynamic.data.permission.common.enums.ResoureFieldType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 标识字段
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ResourceFieldCheck {

    /**
     * 查询的字段
     */
    ResoureFieldType code();

    /**
     * 查询条件
     */
    SqlKeyword compare() default SqlKeyword.EQ;

}